﻿namespace EP.Base.BaseService.Manager.Interface.Common
{
    /// <summary>
    /// 待执行服务必须实现接口
    /// </summary>
    public interface IAutoMonitorService
    {
        void Start();
        void WriteDebugMsg(string msg);
        void WriteErrorMsg(string msg);

        void Stop();

        void Dispose();
    }
    /// <summary>
    /// 服务监控
    /// </summary>
    public interface IServiceMonitor
    {
        void Register<T>(T job) where T : IAutoMonitorService;
        void Start();
        void Stop();
    }
}
